<template>
    <div>
        <h3>child子组件部分</h3>
        <!-- <p>{{ message }}</p> -->
        <input type="text" v-model="message">
        <button @click="sendMsgToParend">向父组件传值</button>
    </div>
</template>
<script>
export default {
    props:['message'],
    methods:{
        sendMsgToParend:function(){
            this.$emit('listenToChildEvent','子组件的值:'+this.message);
        }
    }
}
</script>

<style lang="sass" scoped>

</style>